package com.xf.sportplay.dao;

import com.xf.sportplay.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserDao {
    public User getUserByMassage(@Param("username") String username,@Param("password") String password);
    public List<User> getAllUser(@Param("username") String username,@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);
    public Integer getUserCounts(@Param("username") String username);
    public Integer updateState(Integer id,Boolean state);
    public int addUser(User user);
    public int deleteUser(int id);
    public User getUpdateUser(int id);
    public int editUser(User user);
}

